﻿@model Lion.WeiXin.Core.Models.ProductModel
@{
    Layout = "~/Views/Shared/_AppLayout.cshtml";
    
}
@section ChildPageJs {
    <script src="/Scripts/WeChat/WeChatProductDetails.js" type="text/javascript"></script>
}
<form>
    <div>
         <h2>@Model.Name</h2>
    </div>
    <div data-role="fieldcontain">
        <input type="hidden" id="productId" value="@Model.AID"/>
        <img src="@Model.Image" style="width:100%"/>
    </div>
    <div data-role="fieldcontain">       
        <p style="text-decoration: line-through;">原价：￥ @Model.Price</p>
        @if (Model.IsVip)
        {
            <h3>现价：￥<span style="color: red"> @Model.VipPrice</span></h3>        
            <p style="color: red;">（会员卡 @Model.Discount 折优惠）</p>
        }
        else
        {
            <p>现价：￥<span style="color: red"> @Model.Current_Price</span></p>     
        }
    </div>
    <div data-role="fieldcontain">
        <h2>产品介绍：@Model.ProductType</h2>
        @Html.Raw(Model.Remark)
    </div>
    <div data-role="fieldcontain">
        <input type="button" data-icon="check" id="btnBuy" data-inline="true" value="购 买" />
        <input type="button" data-icon="grid" id="btnAddToShoppingCart" data-inline="true" value="加入购物车" />
    </div>
</form>

